package org.freespace.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuqi
 * @since 2023-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
public class JobDetail extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer testplanId;

    private Integer jobId;

    /**
     * 线程数
     */
    private Integer threadNum;

    /**
     * 单位
     */
    private String duration;

    /**
     * tps
     */
    private String tps;

    private String maxTps;

    /**
     * 平均响应时间 ms
     */
    private String avg;

    /**
     * 90%响应时间小于 ms
     */
    private String line90;

    private String line95;

    private String line99;

    /**
     * 请求数
     */
    private String samples;

    /**
     * 错误请求数
     */
    private String error;

    /**
     * 错误率
     */
    private String errorPercent;

    /**
     * 接口名
     */
    private String label;

    /**
     * 接口url
     */
    private String url;

    /**
     * 最小值
     */
    private String min;

    /**
     * 最大值
     */
    private String max;
//
//    /**
//     * 中位数
//     */
//    private String median;
//
//    private String received;
//
//    private String sent;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private String lastUpdateBy;

    /**
     * 最后更新时间
     */
    private LocalDateTime lastUpdateTime;


}
